Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promote gare from experimental #1048

Merged
merged 5 commits into from
Sep 17, 2024
Merged

Promote gare from experimental #1048

merged 5 commits into from
Sep 17, 2024

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Sep 16, 2024

The auth_requirements_error module is moved to globus_sdk.gare and docs and importts are updated.

Included in this change, GlobusAuthRequirementsError has been renamed to GARE, as the Error suffix to a name typically indicates that a class is an exception class.

Aliasing has been put in place from experimental to the new code location.

As a minor, related fix _serializable.Serializable now uses a Self type annotation, rather than a type var. This improves the doc rendering of the from_dict and to_dict methods, as they show the self-type rather than an unbound type variable T.


📚 Documentation preview 📚: https://globus-sdk-python--1048.org.readthedocs.build/en/1048/

The `auth_requirements_error` module is moved to `globus_sdk.gare` and
docs and importts are updated.

Included in this change, `GlobusAuthRequirementsError` has been
renamed to `GARE`, as the `Error` suffix to a name typically indicates
that a class is an exception class.

Aliasing has been put in place from `experimental` to the new code
location.

As a minor, related fix `_serializable.Serializable` now uses a
`Self` type annotation, rather than a type var. This improves the doc
rendering of the `from_dict` and `to_dict` methods, as they show the
self-type rather than an unbound type variable T.
In order to use `typing.Self`, we must install `typing_extensions` on
Python 3.10.
Copy link
Contributor

@ada-globus ada-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the suggestions above, I'm happy with how this came out 🙌

sirosen and others added 3 commits September 17, 2024 12:38
And include testing of the rename aliases.
Co-authored-by: Ada <107940310+ada-globus@users.noreply.github.com>
Copy link
Contributor

@ada-globus ada-globus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LOL @ the plaintive wail in that last commit. Yay for the line-length win everywhere, including our other products! 😁

@sirosen sirosen merged commit 99d3bcd into globus:main Sep 17, 2024
15 checks passed
@sirosen sirosen deleted the move-gare branch September 17, 2024 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants